package com.moore.Servlet;

import com.moore.net.HttpRequest;
import com.moore.net.HttpResponse;
import com.moore.net.HttpServlet;
import com.moore.utils.UserUtils;

public class BalanceServlet extends HttpServlet {

    @Override
    public byte[] doGet(HttpRequest request, HttpResponse response) {
        String responseData;
        String balance = request.getParams().get("allBalance");
        String id = request.getParams().get("id");
        responseData = UserUtils.update("balance",balance,id);
        return responseData.getBytes();
    }
}
